<p>
    If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
</p>

<div class="form">

    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'type' => 'horizontal',
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
        'enableClientValidation' => true
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <?php echo $form->textFieldRow($model, 'name', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>
    <?php echo $form->textFieldRow($model, 'email', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>
    <?php echo $form->textFieldRow($model, 'phone', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>

    <?php echo $form->textFieldRow($model, 'subject', array('size' => 60, 'maxlength' => 128, 'class' => 'span5')); ?>


    <?php echo $form->textAreaRow($model, 'body', array('rows' => 6, 'cols' => 50, 'class' => 'span5')); ?>


    <?php if (extension_loaded('gd')): ?>
        <div class="control-group">
            <label class="control-label">Verify Code</label>
            <div class="controls">
                <?php $this->widget('CCaptcha'); ?>
                <br/>
                <?php echo $form->textField($model, 'verifyCode'); ?>

                <p class="help-block">Please enter the letters as they are shown in the image above.
                    <br/>Letters are not case-sensitive.</p>
            </div>
        </div>
    <?php endif; ?>

    <div class="form-actions">
        <input type="submit" value="Submit" class="btn btn-primary" />
        <input type="reset" value="Reset" class="btn btn-danger" />
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->